﻿using System;

namespace CXW.Core.Sharp
{
    /// <summary>
    /// IViewContent is the base interface for "windows" in the document area of SharpDevelop.
    /// A view content is a view onto multiple files, or other content that opens like a document
    /// (e.g. the start page).
    /// </summary>
    public interface IViewContent : IDisposable, IServiceProvider
    {
        /// <summary>资源文件资源名称</summary>
        string Language { set; get; }
        /// <summary>执行参数</summary>
        string Args { set; get; }
        /// <summary>配置文件名称</summary>
        string CfgName { set; get; }
        /// <summary>默认 UI 显示文字</summary>
        string Label { set; get; }
        /// <summary><see cref="Codon.Id"/></summary>
        string CodonId { set; get; }
        /// <summary>
        /// This is the UI element for the view.
        /// You can use both Windows.Forms and Windows.Control controls.
        /// </summary>
        object Control { get; }
        /// <summary> IViewContent 对象激活时执行</summary>
        void ActivateViewContentChanged2();
        /// <summary>
        /// The tooltip that will be shown when you hover the mouse over the title
        /// </summary>
        string InfoTip { set; get; }
    }
}
